<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>

<%@page import="java.util.*, model.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
			<%
				Applicant applicant = (Applicant)session.getAttribute("applicant");
				Vector degreesVector = (Vector)session.getAttribute("degreeVector");
				String degreesString = Database.printDegrees(degreesVector);
				Degree degree = (Degree)session.getAttribute("degree");
				Vector specializationVector = (Vector) session.getAttribute("specializationsVector");
			%>
			
			<%="Name: " + applicant.getName() %><br />
			<%="Country of Citizenship: " + applicant.getCitizenship() %> <br />
			<%="Country of Residence: " + applicant.getCountry_of_residence() %><br/>
			<%if(applicant.isDomestic()){ %>
			<%="Address: " + applicant.getAddressDomestic() %><br/>
			<%}else{%>
			<%="Address: " + applicant.getAddressForeign() %><br/>
			<%} %>
			<%= applicant.getDomestic() %><br/>
		
			<!-- Print Degrees -->
			<br /><%= degreesString %><br />
		
			<hr /><br /> We believe that everyone is special.  Please select what type of special you are! <br /><br />
		
			<html:form action="/specializationSubmit">
			
					<html:select property="specialization">
						<% for (int i =0; i< specializationVector.size(); i++) {%>
							<html:option value="<%= (String)specializationVector.get(i) %>"><%= specializationVector.get(i) %></html:option>
						<%}%>					
					</html:select>
				
				<html:submit value="next" />
			</html:form>
</body>
</html>